///**
// @file        Infrasound.VDM.Iterator.c
// @ingroup     libVDM						
// @brief       iterates not-empty blocks in RAM
// @version     $0.1$					
// @since       1.0
// @author      Andreas Schlueter
//
// 
//
// $Id$
// */
//
//#include <Infrasound.VDM.Iterator.h>
//#include "Infrasound.VDM.internals.h"
//
//
//extern STACK(fragmentStack);					///< partly filled blocks
//extern STACK(pagedInStack);						///< full and recently paged in blocks
//
//
//
//
///**
// * @brief moves initializes iterator and goes to first block containing data
// */
//void iterator_moveFirst(){
//	sp_fragments = fragmentStack.sp-1;
//	sp_pagedIn = pagedInStack.sp-1;
//}
//
///**
// * @brief checks if more not-empty blocks exist
// *
// * @return true, if next not-empty block exists
// */
//bool iterator_hasNext(){
//	return((sp_fragments<=fragmentStack.sp) || (sp_pagedIn<=pagedInStack.sp));
//}
//
///**
// * @brief returns current not-empty block and moves iterator to next position
// *
// * @return next not-empty block 
// */
//sd_block_t* iterator_next(){
//	if(sp_fragments<=fragmentStack.sp)
//		return	fragmentStack.buf[sp_fragments--];
//	
//	if(sp_pagedIn<=pagedInStack.sp)
//		return pagedInStack.buf[sp_pagedIn--];
//
//	return NULL;
//}
//
//
